

<h1><?php echo lang('users_online'); ?></h1>

<br/>
<br/>
<table id="table_users_online" width='100%' class='table_sorter' cellpadding=3px cellspacing=0>
  <thead>
    <th></th>
    <th>ID</th>
    <th><?=lang('username')?></th>
    <th>E-mail</th>
    <th><?=lang('affiliate')?></th>
    <th><?=lang('last_visit')?></th>
    <th><?=lang('registration_date')?></th>
    <th><?=lang('last_message_date')?></th>
    <th><?=lang('coins')?></th>
    <th><?=lang('bonus_coins')?></th>
    <th><?=lang('expenditure')?></th>
  </thead>
    <tbody>
    <?php 
      $this->load->view('users/users_list');
    ?>  
    </tbody>
</table>
<br/>
<div id='response'></div>

    <script type="text/javascript">
        update_online_users();
        
        // Stalno pozivanje f-je da updateuje broj online korisnika
        setInterval(update_online_users, REFRESH_TIME); // svake 5 sekunde
    </script>

<a href="<?=LINK_URL?>users" ><< <?php echo lang('users');?></a>

<div id="dialog-user" class="hide" title="<?php echo lang('user'); ?>">

</div>
